﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using mepostras.BLL;

namespace mepostras.BO
{
    public interface IContactBo
    {
        /// <summary>
        /// Cập nhật contact
        /// </summary>
        /// <param name="contact"></param>
        /// <param name="messageCode"></param>
        /// <returns></returns>
        bool Update(Contact contact, out string messageCode);

        /// <summary>
        /// Tạo mới contact
        /// </summary>
        /// <param name="contact"></param>
        /// <param name="messageCode"></param>
        /// <returns></returns>
        bool Insert(Contact contact, out string messageCode);

        /// <summary>
        /// Khách hàng tạo form liên hệ
        /// </summary>
        /// <param name="contact"></param>
        /// <param name="messageCode"></param>
        /// <returns></returns>
        bool Book(Contact contact, out string messageCode);

        /// <summary>
        /// Xóa contact
        /// </summary>
        /// <param name="id"></param>
        /// <param name="messageCode"></param>
        /// <returns></returns>
        bool Delete(int id, out string messageCode);
    }
}
